package com.maopuyu.services;

import com.maopuyu.entity.HousingEstate;
import com.maopuyu.repositories.HousingEstateRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class HosingEstateService {

    @Autowired
    private HousingEstateRepository housingEstateRepository;

    public List<HousingEstate> findHousingEstateByEstateName(String hosingEstateName) {
        return housingEstateRepository.findHousingEstatesByHosingEstateNameLike(hosingEstateName);
    }
}
